/*
 * @Author: your name
 * @Date: 2020-08-10 17:44:40
 * @LastEditTime: 2020-09-27 11:16:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \cesium-vue\src\api\index.js
 */
import { get, post, formPost } from './request'

const prefix = 'emergency'

/*        应急资源         */
// 通讯录列表
export const getAddressBookList = data => { return formPost(`${prefix}/resource/getAddressBookList`, data) }
// 应急资源专家组
export const getExpertGroupList = data => { return get(`${prefix}/dispatch/getExpertGroupList`, data) }
// 数据资源统计
export const dataStatistics = data => { return get(`${prefix}/resource/dataStatistics`, data) }
// 救援队伍统计
export const rescueTeamStatistics = data => { return get(`${prefix}/resource/rescueTeamStatistics`, data) }
// 获取应急资源数据
export const getSettlementPointList = data => { return get(`${prefix}/resource/getSettlementPointList`, data) } // 安置点
export const getSettlementPointDetail = data => { return get(`${prefix}/resource/getSettlementPointDetail`, data) } // 安置点详情
export const getLinkmanPointList = data => { return get(`${prefix}/resource/getLinkmanPointList`, data) } // 联络点列表
export const getLinkmanPointDetail = data => { return get(`${prefix}/resource/getLinkmanPointDetail`, data) } // 联络点详情
export const getRescueTeamList = data => { return get(`${prefix}/resource/getRescueTeamList`, data) } // 救援队伍列表
export const getRescueTeamDetail = data => { return get(`${prefix}/resource/getRescueTeamDetail`, data) } // 救援队伍详情
export const getEmergencySuppliesPointList = data => { return get(`${prefix}/resource/getEmergencySuppliesPointList`, data) } // 应急物资点列表
export const getEmergencySuppliesPointDetail = data => { return get(`${prefix}/resource/getEmergencySuppliesPointDetail`, data) } // 应急物资点详情
export const getDataCountStatistics = data => { return get(`${prefix}/resource/countStatistics`, data) } // 应急资源数量统计
export const getResourceList = data => { return get(`${prefix}/resource/getResourceList`, data) } // 应急资源列表
/*     应急响应     */
// 应急响应数据统计
export const dataStatisticss = data => { return get(`${prefix}/response/dataStatistics`, data) }
// 应急响应部门确认数据
export const deptConfirmList = data => { return get(`${prefix}/response/deptConfirmList`, data) }
// 当前启动响应状态
export const getCurrentLevel = data => { return get(`${prefix}/response/getCurrentLevel`, data) }
// 启动应急响应
export const start = data => { return post(`${prefix}/response/start`, data) }
// 调整响应
export const change = data => { return post(`${prefix}/response/change`, data) }
// 解除响应
export const stop = data => { return get(`${prefix}/response/stop`, data) }
/* 通用接口 - end */
export const getStreetList = data => { return get(`${prefix}/common/getStreetList`, data) } // 安置点
// 部门列表
export const getDepartmentList = data => { return formPost(`${prefix}/common/getDepartmentList`, data) }
// 村/社区列表
export const getVillageList = data => { return get(`${prefix}/common/getVillageList`, data) }
// 职称列表
export const getDutiesList = data => { return get(`${prefix}/common/getDutiesList`, data) }
// 行业及特长列表
export const getIndustryList = data => { return get(`${prefix}/common/getIndustryList`, data) }
export const getTeamTypeList = data => { return get(`${prefix}/common/getTeamTypeList`, data) } // 救援队伍类型列表
// export { imgUrl}

// 用户登录
export const postLogin = data => { return formPost(`${prefix}/user/login`, data) }
// 专家通知列表
// export const expertnoticeList = data => { return get(`${prefix}/dispatch/expert/noticeList`, data) }
// 新增受灾点
// export const addAffectedPoint = data => { return post(`${prefix}/dispatch/addAffectedPoint`, data) }
// 受灾点列表
// export const getAffectedPointList = data => { return get(`${prefix}/dispatch/getAffectedPointList`, data) }
// 受灾点详情
// export const getAffectedPointDetails = data => { return get(`${prefix}/dispatch/getAffectedPointDetails`, data) }
// 通知专家
// export const expertaddNotice = data => { return post(`${prefix}/dispatch/expert/addNotice`, data) }
// 消除受灾点

/** ************************* 应急调度 **************************/

export const expertnoticeList = data => { return get(`${prefix}/dispatch/expert/noticeList`, data) } // 专家通知列表

export const addAffectedPoint = data => { return post(`${prefix}/dispatch/addAffectedPoint`, data) }// 新增受灾点

export const getAffectedPointList = data => { return get(`${prefix}/dispatch/getAffectedPointList`, data) } // 受灾点列表

export const scopeScheduleSearch = data => { return formPost(`${prefix}/dispatch/scopeScheduleSearch`, data) } // 受灾点调度范围搜索

export const getAffectedPointDetails = data => { return get(`${prefix}/dispatch/getAffectedPointDetails`, data) } // 受灾点详情

export const expertaddNotice = data => { return post(`${prefix}/dispatch/expert/addNotice`, data) } // 通知专家

export const delAffectedPoint = data => { return formPost(`${prefix}/dispatch/delAffectedPoint`, data) } // 消除受灾点

export const getSuppliesTypeList = data => { return get(`${prefix}/dispatch/getSuppliesTypeList`, data) } // 物资类型

export const getRescueTeamTypeList = data => { return get(`${prefix}/dispatch/getRescueTeamTypeList`, data) } // 救援队类型

export const requiredScheduleSearchsupplies = data => { return post(`${prefix}/dispatch/requiredScheduleSearch/supplies`, data) } // 受灾点按需筛选物资点搜索

export const scheduleRequireAffectedsupplies = data => { return post(`${prefix}/dispatch/scheduleRequireAffected/supplies`, data) } // 受灾点按需筛选调度物资点提交

export const requiredScheduleSearchteam = data => { return formPost(`${prefix}/dispatch/requiredScheduleSearch/team`, data) } // 受灾点按需筛选救援队搜索

export const requiredScheduleSearchrescue = data => { return formPost(`${prefix}/dispatch/requiredScheduleSearch/rescue`, data) } // 避灾点按需筛选避灾点搜索
// export const expertaddNotice = data => { return post(`${prefix}/dispatch/expert/addNotice`, data) } // 通知专家

export const scheduleScopeAffected = data => { return post(`${prefix}/dispatch/scheduleScopeAffected`, data) } // 受灾点范围搜索调度提交

export const scheduleRequireAffectedteam = data => { return post(`${prefix}/dispatch/scheduleRequireAffected/team`, data) } // 受灾点按需筛选调度救援队提交

export const scheduleRequireAffectedsettlement = data => { return post(`${prefix}/dispatch/scheduleRequireAffected/settlement`, data) } // 受灾点按需筛选调度救援队提交
